#include<iostream>
#include<time.h>
using namespace std;

void removeRandomElement(int arr[], int size)
{
	if (size == 0) return;

	int random = rand() % 10;
	for (int i = random; i < 10; i++)
	{
		arr[i] = arr[i + 1];
	}
	size--;
}

int main()
{
	srand((uint64_t)time(nullptr));
	int arr[10] = { 1,2,3,4,5,6,7,8,9,0 };
	int n = sizeof(arr) / sizeof(arr[0]);
		
	removeRandomElement(arr, n);

	for (int i = 0; i < 9; i++)
	{
		cout << arr[i] << endl;
	}

	return 0;
}